<el-dialog title="新增用品资料" v-model="addFormDialog">
  <el-form  ref="addForm" :label-width="dialogLabelWidth" :model="addForm" :rules="addRules">
    <el-row>
      <el-col :span="11" >
        <el-form-item label="名称" prop="name" >
          <el-input v-model="addForm.name" placeholder="请输入物品名称"></el-input>
        </el-form-item>
      </el-col>
      <el-col :span="11">
        <el-form-item label="类别" prop="type" >
          <el-select v-model="addForm.type" placeholder="请选择物品分类">
            <el-option v-for="(value,key) in type"  :label="value" :value="value"></el-option>
          </el-select>
        </el-form-item>
      </el-col>
      
    </el-row>

    <el-row>
      <el-col :span="11">
        <el-form-item label="单位" prop="unit" >
          <el-input v-model="addForm.unit" placeholder="请输入物品单位,如:台 /个"></el-input>
        </el-form-item>
      </el-col>
      <el-col :span="11">
        <el-form-item label="规格" prop="specification" >
          <el-input v-model="addForm.specification" placeholder="请填写规格:品牌/颜色/尺寸"></el-input>
        </el-form-item>
      </el-col>
    </el-row>
 
    <el-row>
      <el-col :span="11">
        <el-form-item label="属性" prop="attributes" >
          <el-select v-model="addForm.attributes" placeholder="请选择物品属性">
            <el-option v-for="(value,key) in attributes"  :label="value" :value="key"></el-option>
          </el-select>
        </el-form-item>
      </el-col>
    </el-row>
  </el-form>

  <div slot="footer" class="dialog-footer">
   <include file="Common:_add" />
  </div>

</el-dialog>
